<template>
	<view class="mesInf">
		<view class="chList" v-for="item in listCh" :key="item.id">
			<view class="chCard" :style="{ 'background-image': 'url(' + item.imgCh + ')' }">
				{{item.nameCh}}
			</view>
		</view>

	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue'
	const listCh = ref([{
			id: 1,
			nameCh: '张三',
			imgCh: '../../../static/demo_img/caln/c1.png'
		},
		{
			id: 2,
			nameCh: '李四',
			imgCh: ''
		},
		{
			id: 3,
			nameCh: '王五',
			imgCh: ''
		},
		{
			id: 4,
			nameCh: '王x五',
			imgCh: ''
		}
	]);
</script>

<style lang="scss" scoped>
	.mesInf {
		// background-color: aqua;
		width: 100%;
		margin-top: 50rpx;
		display: flex;
		flex-direction: column;
		align-items: center;

		.chCard {
			margin-top: 20rpx;
			height: 270rpx;
			background-color: aquamarine;
			width: 80vw;
			border-radius: 13px;
			margin-bottom: 16rpx;
			background-position: center;
			background-size: cover; 
		}
	}
</style>